import {Project} from '../../models/Project';
export class AddProjectDto{
  static toProject(userId:string,body:any):Project
  {
    var project = new Project();
    project.title = body.title;
    project.user = userId;
    project.description = body.description;
    project.open = body.open;
    project.createdAt = new Date();
    return project;
  }
}
